﻿@model LotteryVoteMVC.Models.LotteryCompany
@using LotteryVoteMVC.Core
@using LotteryVoteMVC.Models
@using LotteryVoteMVC.Resources
@using LotteryVoteMVC.Utility
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>@Resource.Edit@Resource.Company</title>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Customer/comm.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Customer/ajaxHelper.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.theme.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/comm.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/TableBase.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/inputs.css")" rel="stylesheet" type="text/css" />
</head>
<body class="long">
    @using (Html.BeginForm())
    {
        <table cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <td colspan="2">
                        @Model.Name
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        @Resource.CompanyName
                    </td>
                    <td>
                        @Html.TextBoxFor(it => it.Name)
                        @Html.ValidationMessageFor(it=>it.Name)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.Abbreviation
                    </td>
                    <td>
                        @Html.TextBoxFor(it => it.Abbreviation)
                        @Html.ValidationMessageFor(it=>it.Abbreviation)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.CompanyType
                    </td>
                    <td>
                        @Html.DropDownListFor(it => it.CompanyType, Extended.GetDescSelectList(Model.CompanyType))
                        @Html.ValidationMessageFor(it=>it.CompanyType)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.Region
                    </td>
                    <td>
                        @Html.DropDownListFor(it => it.Region, Extended.GetSelectList<Region>(Model.Region))
                        @Html.ValidationMessageFor(it=>it.Region)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.OpenTime
                    </td>
                    <td>
                        @Html.TextBoxFor(it => it.OpenTime)
                        @Html.ValidationMessageFor(it=>it.OpenTime)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.CloseTime
                    </td>
                    <td>
                        @Html.TextBoxFor(it => it.CloseTime)
                        @Html.ValidationMessageFor(it=>it.CloseTime)
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <input type="submit" name="submit" id="submit" value="@Resource.Submit" />
                        <input type="reset" name="reset" id="reset" value="@Resource.Reset" />
                    </td>
                </tr>
            </tbody>
        </table>
    }
</body>
</html>
